package com.grass.p019lv.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import com.androidsa.bttsddka.R;

/* renamed from: com.grass.lv.dialog.CancelableDialogLoading */
public class CancelableDialogLoading extends Dialog {
    TextView tvHint = ((TextView) findViewById(R.id.tv_hint));

    public CancelableDialogLoading(Context context) {
        super(context, R.style.MyDialogStyle);
        setContentView(R.layout.dialog_loading);
        Window window = getWindow();
        WindowManager.LayoutParams attributes = window.getAttributes();
        attributes.gravity = 17;
        window.setAttributes(attributes);
        setCancelable(true);
        setCanceledOnTouchOutside(false);
    }

    public void setTvHint(String str) {
        this.tvHint.setText(str);
    }
}
